// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// By default we import all the components.
// Only reserve the components on demand and remove the rest.
// Style is always required.
import './common/components'
import './components'
import App from './App'
import router from './router'
import "./assets/main.styl"

import * as filters from './filters' // 全局filter
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
//import axios from 'axios'
//import VueAxios from 'vue-axios'
//Vue.use(VueAxios, axios)

import axiosPlugin from "./server"; 
Vue.use(axiosPlugin);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
